package com.example._02jsp.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Date;

@Controller
public class WelcomeController {

    @GetMapping("/test1")
    public String test(Model model) {
        model.addAttribute("time", new Date());
        model.addAttribute("message", "hello world");
        return "hello";
    }

}
